package com.fly.bean;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @Auther: Orchid
 * @Date: 2019/11/27 14:16
 * @Description:
 */
public class Users {

    private Integer userId;

    private String userName;

    private String userPwd;

    private Role role;

    private String sex;

    private Integer age;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date joinDate;//入职时间

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date leavingDate;

    private String phone;

    private String email;

    private SystemPropertiesValue systemPropertiesValue;

    public Users() {

    }

    public Users(Integer userId, String userName, String sex, Integer age, Date joinDate, Date leavingDate, String phone, String email) {
        this.userId = userId;
        this.userName = userName;
        this.sex = sex;
        this.age = age;
        this.joinDate = joinDate;
        this.leavingDate = leavingDate;
        this.phone = phone;
        this.email = email;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getJoinDate() {
        return joinDate;
    }

    public void setJoinDate(Date joinDate) {
        this.joinDate = joinDate;
    }

    public Date getLeavingDate() {
        return leavingDate;
    }

    public void setLeavingDate(Date leavingDate) {
        this.leavingDate = leavingDate;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public SystemPropertiesValue getSystemPropertiesValue() {
        return systemPropertiesValue;
    }

    public void setSystemPropertiesValue(SystemPropertiesValue systemPropertiesValue) {
        this.systemPropertiesValue = systemPropertiesValue;
    }
}
